<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        function fun(val,flag) {
            // 类数组对象 arguments
            console.log(val,flag,arguments[2]);
        }
        var name = 'tom';
        var age = 13;
        var gender = 'male';
        fun(name,age,gender);
    </script>
</body>
</html>